package com.ccntec.spark.core.tags.html;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

public class BeginBodyTag extends TagSupport{
	
	/**
	 * ��ʼҳ���ǩ
	 */
	private static final long serialVersionUID = 212973715783836889L;
	@Override
	public int doStartTag() throws JspException {
		String html = "<div class=\"modal-shiftfix\">" ;
		try {
			pageContext.getOut().print(html);
		} catch (IOException e) {
			e.printStackTrace();
		}
		return EVAL_BODY_INCLUDE;
	}
	@Override
	public int doAfterBody() throws JspException {
		
		return SKIP_BODY;
	}
	@Override
	public int doEndTag() throws JspException {
		String html = "</div>" ;
		try {
			pageContext.getOut().print(html);
		} catch (IOException e) {
			e.printStackTrace();
		}
		return EVAL_PAGE;
	}
	@Override
	public void release() {
		super.release();
	}
}
